<?php

include "header.html";

define('SMARTY_DIR', 'C:/xampp/htdocs/door-market/Smarty-3.1.19/libs/');
require_once('C:/xampp/htdocs/door-market/php/classes/db.class.php');

require_once(SMARTY_DIR . 'Smarty.class.php');
$smarty = new Smarty();


$smarty->template_dir = 'C:/xampp/htdocs/door-market/templates/';
$smarty->compile_dir  = 'C:/xampp/htdocs/door-market/templates_c';



$current_page_number = 1;
$current_page_position = 1;

$pages = array(
    "start_page" => 1,
    "previous_page"=>0,
    "1_page"=>array("value" => 1 , "class" => "selected"),
    "2_page"=>array("value" => 2 , "class" => "selected"),
    "3_page"=>array("value" => 3 , "class" => "selected"),
    "4_page"=>array("value" => 4 , "class" => "selected"),
    "5_page"=>array("value" => 5 , "class" => "selected"),
    "next_page" =>6,
    "last_page" =>77
);


$pages = array(
    array("title" => 'first page' , "class" => "first", "link" =>"http://door-market/#1"),
    array("title" => 'previous page', "class" => "previous", "link" =>"http://door-market/#1"),
    array("title" => 1 , "class" => "page_num", "link" =>"http://door-market/#1"),
    array("title" => 1 , "class" => "page_num", "link" =>"http://door-market/#2"),
    array("title" => 1 , "class" => "page_num", "link" =>"http://door-market/#3"),
    array("title" => 1 , "class" => "page_num", "link" =>"http://door-market/#4"),
    array("title" => 1 , "class" => "page_num", "link" =>"http://door-market/#5"),
    array("title" => 'next page' , "class" => "next", "link" =>"http://door-market/#6"),
    array("title" => 'last page', "class" => "last", "link" =>"http://door-market/#77")
);

//echo '<pre>';
//var_dump($pages);




$smarty->assign('pages',$pages);
$smarty->display('main_content.tpl');


?>
